package com.honweek;

public class Demo4 {
    public static void main(String[] args) {
       MyRunnable mr = new MyRunnable();
       Thread td = new Thread(mr,"小强");
       td.start();
       for(int i =0; i<100; i++){
           System.out.println("旺财"+i);
       }
    }
}

class MyRunnable implements Runnable{

    @Override
    public void run() {
        for(int i =0; i<100; i++){
            System.out.println(Thread.currentThread().getName()+i);
        }
    }
}

